
all:  lab0_cprog lab0_asmprog

clean:
	rm -f lab0_cprog lab0_asmprog *.o

input.o:  input.c
	gcc -g -c input.c -o input.o

lab0_cprog.o:  lab0_cprog.c input.h
	gcc -g -c lab0_cprog.c -o lab0_cprog.o

lab0_cprog:  lab0_cprog.o input.o
	gcc -g lab0_cprog.o input.o -o lab0_cprog

lab0_asmprog.o:  lab0_asmprog.s input.h
	as --gstabs lab0_asmprog.s -o lab0_asmprog.o

lab0_asmprog:  lab0_asmprog.o input.o
	gcc -g lab0_asmprog.o input.o -o lab0_asmprog

